<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0034)http://qsfwy.iteye.com/blog/438022 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>java如何遍历map的所有的元素（各种方法） - qsfwy - ITeye技术网站</title>
    <meta name="description" content="JDK1.4中 Map map = new HashMap(); Iterator it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); Object key = entry.getKey(); Object value = entry.getValue(); } ...">
    <meta name="keywords" content="Java java如何遍历map的所有的元素（各种方法）">
    <link rel="shortcut icon" href="http://qsfwy.iteye.com/images/favicon.ico" type="image/x-icon">
    <link rel="search" type="application/opensearchdescription+xml" href="http://qsfwy.iteye.com/open_search.xml" title="ITeye">
    <link href="http://qsfwy.iteye.com/rss" rel="alternate" title="qsfwy" type="application/rss+xml">
    <link href="./java遍历map的所有的元素（各种方法）_files/blog.css" media="screen" rel="stylesheet" type="text/css">
<link href="./java遍历map的所有的元素（各种方法）_files/blue.css" media="screen" rel="stylesheet" type="text/css">
    <script type="text/javascript" async="" src="./java遍历map的所有的元素（各种方法）_files/ga.js"></script><script src="./java遍历map的所有的元素（各种方法）_files/application.js" type="text/javascript"></script>
    <script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-535605-1']);
  _gaq.push(['_setDomainName', 'iteye.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>


      <link href="./java遍历map的所有的元素（各种方法）_files/SyntaxHighlighter.css" media="screen" rel="stylesheet" type="text/css">
  <script src="./java遍历map的所有的元素（各种方法）_files/shCoreCommon.js" type="text/javascript"></script>
<script src="./java遍历map的所有的元素（各种方法）_files/hotkey.js" type="text/javascript"></script>
  <script src="./java遍历map的所有的元素（各种方法）_files/code_favorites.js" type="text/javascript"></script>
<script src="./java遍历map的所有的元素（各种方法）_files/weiboshare.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="header">
      <div id="blog_site_nav">
  <a href="http://www.iteye.com/" class="homepage">首页</a>
  <a href="http://www.iteye.com/news">资讯</a>
  <a href="http://www.iteye.com/magazines">精华</a>
  <a href="http://www.iteye.com/forums">论坛</a>
  <a href="http://www.iteye.com/ask">问答</a>
  <a href="http://www.iteye.com/blogs">博客</a>
  <a href="http://www.iteye.com/blogs/subjects">专栏</a>
  <a href="http://www.iteye.com/groups">群组</a>
  <a href="http://qsfwy.iteye.com/blog/438022#" onclick="return false;" id="msna"><u>更多</u> <small>▼</small></a>
  <div class="quick_menu" style="display:none;">
    <a target="_blank" href="http://job.iteye.com/iteye">招聘</a>
    <a href="http://www.iteye.com/search">搜索</a>
  </div>
</div>

      <div id="user_nav">
      <a href="http://qsfwy.iteye.com/login" class="welcome" title="登录">您还未登录 !</a>
    <a href="http://qsfwy.iteye.com/login">登录</a>
    <a href="http://qsfwy.iteye.com/signup" class="nobg">注册</a>
  </div>

    </div>

    <div id="page">
      <div id="branding" class="clearfix">
        <div id="blog_name">
          <h1><a href="http://qsfwy.iteye.com/">qsfwy</a></h1>
        </div>
        <div id="fd"></div>
        <div id="blog_navbar">
          <ul>
            <li class="blog_navbar_for"><a href="http://qsfwy.iteye.com/"><strong>博客</strong></a></li>
            <li><a href="http://qsfwy.iteye.com/weibo">微博</a></li>
            <li><a href="http://qsfwy.iteye.com/album">相册</a></li>
            <li><a href="http://qsfwy.iteye.com/link">收藏</a></li>
            <li><a href="http://qsfwy.iteye.com/blog/guest_book">留言</a></li>
            <li><a href="http://qsfwy.iteye.com/blog/profile">关于我</a></li>
          </ul>
    
          <div class="search">
            <form action="http://qsfwy.iteye.com/blog/search" method="get">
              <input class="search_text" id="query" name="query" style="margin-left: 10px;width: 110px;" type="text" value="">
              <input class="submit_search" type="submit" value="">
            </form>
          </div> 
          <div id="fd"></div>         
        </div>
      </div>
      
      <div id="content" class="clearfix">
        <div id="main">
          



          


<div class="blog_main">
  <div class="blog_title">
    <h3>
      <a href="./java遍历map的所有的元素（各种方法）_files/java遍历map的所有的元素（各种方法）.htm">java如何遍历map的所有的元素（各种方法）</a>
      <em class="actions">      </em>
    </h3>
    <ul class="blog_categories"><strong>博客分类：</strong> <li><a href="http://qsfwy.iteye.com/category/53184">jackey</a></li> </ul>
        <div class="news_tag"><a href="http://www.iteye.com/blogs/tag/Java">Java</a>&nbsp;</div>
  </div>

  <div id="blog_content" class="blog_content">
    <p><strong>JDK1.4中</strong> <br><br>Map map = new HashMap(); <br>Iterator it = map.entrySet().iterator(); <br>while (it.hasNext()) { <br>Map.Entry entry = (Map.Entry) it.next(); <br>Object key = entry.getKey(); <br>Object value = entry.getValue(); <br>} <br><br><br><strong>JDK1.5中,应用新特性For-Each循环</strong> <br><br>Map m = new HashMap(); <br>for(Object o : map.keySet()){ <br>&nbsp;&nbsp;&nbsp; map.get(o); <br>} <br><br><br><strong>返回的 set 中的每个元素都是一个 Map.Entry 类型。</strong> <br><br>private Hashtable&lt;String, String&gt; emails = new Hashtable&lt;String, String&gt;(); <br><br>&nbsp;&nbsp; //方法一: 用entrySet() <br>&nbsp;&nbsp; Iterator it = emails.entrySet().iterator(); <br>&nbsp;&nbsp; while(it.hasNext()){ <br>&nbsp;&nbsp;&nbsp; Map.Entry m=(Map.Entry)it.next(); <br>&nbsp;&nbsp;&nbsp; logger.info("email-" + m.getKey() + ":" + m.getValue()); <br>&nbsp;&nbsp; } <br>&nbsp; <br>&nbsp;&nbsp; // 方法二：jdk1.5支持，用entrySet()和For-Each循环() <br>&nbsp;&nbsp; for (Map.Entry&lt;String, String&gt; m : emails.entrySet()) { <br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; logger.info("email-" + m.getKey() + ":" + m.getValue()); <br>&nbsp;&nbsp; } <br>&nbsp; <br>&nbsp;&nbsp; // 方法三：用keySet() <br>&nbsp;&nbsp; Iterator it = emails.keySet().iterator(); <br>&nbsp;&nbsp; while (it.hasNext()){ <br>&nbsp;&nbsp;&nbsp; String key; <br>&nbsp;&nbsp;&nbsp; key=(String)it.next(); <br>&nbsp;&nbsp;&nbsp; logger.info("email-" + key + ":" + emails.get(key)); <br>&nbsp;&nbsp; } <br><br>// 方法五：jdk1.5支持，用keySEt()和For-Each循环 <br><br>for(Object m: emails.keySet()){ <br>&nbsp;&nbsp;&nbsp; logger.info("email-" + m+ ":" + emails.get(m)); <br>&nbsp;&nbsp; } <br><br>另外 我们可以先把hashMap 转为集合Collection，再迭代输出，不过得到的对象 <br><br>&nbsp;&nbsp; Map&nbsp;&nbsp;&nbsp; aa&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; new&nbsp;&nbsp;&nbsp; HashMap();&nbsp;&nbsp; <br>&nbsp;&nbsp; aa.put("tmp1",&nbsp;&nbsp;&nbsp; new&nbsp;&nbsp;&nbsp; Object());&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //追加&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 替换用同样的函数.&nbsp;&nbsp; <br>&nbsp;&nbsp; aa.remove("temp1");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //删除&nbsp;&nbsp; <br>&nbsp;&nbsp; for&nbsp;&nbsp;&nbsp; (Iterator&nbsp;&nbsp;&nbsp; i&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; aa.values().iterator();&nbsp;&nbsp;&nbsp; i.hasNext();&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object&nbsp;&nbsp;&nbsp; temp&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; i.next();&nbsp;&nbsp; <br>&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //遍历&nbsp;&nbsp; <br><br><br>来个完整的，包含TreeSet的元素内部排序的 <br><br>public static void main(String[] args) { <br>&nbsp;&nbsp; ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;(); <br>&nbsp;&nbsp; HashMap&lt;Object,Object&gt; hash = new HashMap&lt;Object,Object&gt;(); <br>&nbsp;&nbsp; TreeMap&lt;Object,Object&gt; treeMap = new TreeMap&lt;Object,Object&gt;(); <br>&nbsp;&nbsp; list.add("a"); <br>&nbsp;&nbsp; list.add("b"); <br>&nbsp;&nbsp; list.add("c"); <br>&nbsp; <br>&nbsp;&nbsp; hash.put(3, 3); <br>&nbsp;&nbsp; hash.put(4, 4); <br>&nbsp;&nbsp; hash.put(5, 5); <br>&nbsp;&nbsp; hash.put(6, 6); <br>&nbsp;&nbsp; hash.put(1, 1); <br>&nbsp;&nbsp; hash.put(2, 2); <br>&nbsp; <br>&nbsp;&nbsp; treeMap.put(1, 1); <br>&nbsp;&nbsp; treeMap.put(2, 2); <br>&nbsp;&nbsp; treeMap.put(3, 3); <br>&nbsp;&nbsp; treeMap.put(4, 4); <br>&nbsp;&nbsp; treeMap.put(5, 5); <br>&nbsp;&nbsp; treeMap.put(6, 6); <br>&nbsp; <br>&nbsp;&nbsp; //list遍历 <br>&nbsp;&nbsp; for(String m: list){ <br>&nbsp;&nbsp;&nbsp; System.out.println(m); <br>&nbsp;&nbsp; } <br>&nbsp;&nbsp; // hashmap entrySet() 遍历 <br>&nbsp;&nbsp; for(Map.Entry&lt;Object,Object&gt; m: hash.entrySet()){ <br>&nbsp;&nbsp;&nbsp; System.out.println(m.getKey()+"---"+m.getValue()); <br>&nbsp;&nbsp; } <br>&nbsp;&nbsp; //hashmap keySet() 遍历 <br>&nbsp;&nbsp; for(Object m: hash.keySet()){ <br>&nbsp;&nbsp;&nbsp; System.out.println(m+"---"+hash.get(m)); <br>&nbsp;&nbsp; } <br>&nbsp;&nbsp; // treemap keySet()遍历 <br>&nbsp;&nbsp; for(Object m: treeMap.keySet()){ <br>&nbsp;&nbsp;&nbsp; System.out.println(m+"---"+treeMap.get(m)); <br>&nbsp;&nbsp; } <br>}</p>
  </div>

  


  <iframe src="./java遍历map的所有的元素（各种方法）_files/794.htm" scrolling="no" width="468" height="60" frameborder="0"></iframe>
  
  <div id="bottoms" class="clearfix">
    
    <div id="share_weibo">分享到：
      <a data-type="sina" href="javascript:;" title="分享到新浪微博"><img src="./java遍历map的所有的元素（各种方法）_files/sina.jpg"></a>
      <a data-type="qq" href="javascript:;" title="分享到腾讯微博"><img src="./java遍历map的所有的元素（各种方法）_files/tec.jpg"></a>
    </div>
  </div>

  <div class="blog_nav">
    <div class="pre_next">
      <a href="http://qsfwy.iteye.com/blog/439734" class="next" title="Ext Ajax：如何调用Ext.Ajax.request方法和使用Java Servlet进行处理">Ext Ajax：如何调用Ext.Ajax.request方法和 ...</a>
      |
      <a href="http://qsfwy.iteye.com/blog/438021" class="pre" title="java 遍历map 方法 集合 jackey">java 遍历map 方法 集合 jackey</a>
    </div>
  </div>
  <div class="blog_bottom">
    <ul>
      <li>2009-08-02 12:04</li>
      <li>浏览 36057</li>
      <li><a href="http://qsfwy.iteye.com/blog/438022#comments">评论(1)</a></li>
      
      
            
      <li class="last"><a href="http://www.iteye.com/wiki/blog/438022" target="_blank" class="more">相关推荐</a></li>
    </ul>
  </div>

  <div class="blog_comment">
    <h5>评论</h5>
    <a id="comments" name="comments"></a>
    <div id="bc2282603">
  <div class="comment_title">
    1 楼
    <a href="http://eric-yan.iteye.com/" target="_blank" title="Eric.Yan">Eric.Yan</a>
    2012-09-20&nbsp;&nbsp;
    
    
  </div>
  <div class="comment_content">JDK1.5中,应用新特性For-Each循环 <br><br>Map m = new HashMap(); <br>for(Object o : map.keySet()){ <br>&nbsp;&nbsp;&nbsp; map.get(o); <br>}<br><br><br>这个貌似不行，o是java.lang.NullPointerException</div>
</div>


    
    
  </div>

  <div class="blog_comment">
    <h5>发表评论</h5>
            <p style="text-align:center; margin-top:30px;margin-bottom:0px;"><a href="http://qsfwy.iteye.com/login" style="background-color:white;"> <img src="./java遍历map的所有的元素（各种方法）_files/login_icon.png" style="vertical-align:middle; margin-right: 10px;"></a><a href="http://qsfwy.iteye.com/login">  您还没有登录,请您登录后再发表评论 </a></p>
      </div>
</div>


<script type="text/javascript">
  dp.SyntaxHighlighter.HighlightAll('code', true, true);

  $$('#main .blog_content pre[name=code]').each(function(pre, index){ // blog content
    var post_id = 438022;
    var location = window.location;
    source_url = location.protocol + "//" + location.host + location.pathname + location.search;
    pre.writeAttribute('codeable_id', post_id);
    pre.writeAttribute('codeable_type', "Blog");
    pre.writeAttribute('source_url', source_url);
    pre.writeAttribute('pre_index', index);
    pre.writeAttribute('title', 'java如何遍历map的所有的元素（各种方法）');
  });

  fix_image_size($$('div.blog_content img'), 700);

  function processComment() {
    $$('#main .blog_comment > div').each(function(comment){// comment
      var post_id = comment.id.substr(2);
      $$("#"+comment.id+" pre[name=code]").each(function(pre, index){
        var location = window.location;
        source_url = location.protocol + "//" + location.host + location.pathname + location.search;
        source_url += "#" + comment.id;
        pre.writeAttribute('codeable_id', post_id);
        pre.writeAttribute('codeable_type', "BlogComment");
        pre.writeAttribute('source_url', source_url);
        pre.writeAttribute('pre_index', index);
        pre.writeAttribute('title', 'java如何遍历map的所有的元素（各种方法）');
      });
    });
  }

  function quote_comment(id) {
    new Ajax.Request('/editor/quote', {
      parameters: {'id':id, 'type':'BlogComment'},
      onSuccess:function(response){editor.bbcode_editor.textarea.insertAfterSelection(response.responseText);
        Element.scrollTo(editor.bbcode_editor.textarea.element);}
    });
  }

  code_favorites_init();
  processComment();
  new WeiboShare({share_buttons: $('share_weibo'), img_scope: $('blog_content')});
</script>




        </div>

        <div id="local">
          <div class="local_top"></div>
          <div id="blog_owner">
  <div id="blog_owner_logo"><a href="http://qsfwy.iteye.com/"><img alt="qsfwy的博客" class="logo" src="./java遍历map的所有的元素（各种方法）_files/8ec99036-a08f-3771-b32b-c77fe5c525f8.jpg" title="qsfwy的博客: qsfwy"></a></div>
  <div id="blog_owner_name">qsfwy</div>
</div>

          <div id="blog_actions">
            <ul>
              <li>浏览: 754229 次</li>
              <li>性别: <img alt="Icon_minigender_1" src="./java遍历map的所有的元素（各种方法）_files/icon_minigender_1.gif" title="男"></li>
              <li>来自: 上海</li>
              <li><img src="./java遍历map的所有的元素（各种方法）_files/offline.gif"></li>
              
            </ul>
          </div>
          <div id="user_visits" class="clearfix">
            <h5>最近访客 <span style="font-weight:normal;font-size:12px;padding-left:30px;"><a href="http://qsfwy.iteye.com/blog/user_visits">更多访客&gt;&gt;</a></span></h5>
            
              <div class="user_visit">
                <div class="logo"><a href="http://javacrab.iteye.com/" target="_blank"><img alt="JavaCrab的博客" class="logo" src="./java遍历map的所有的元素（各种方法）_files/user-logo-thumb.gif" title="JavaCrab的博客: "></a></div>
                <div class="left"><a href="http://javacrab.iteye.com/" target="_blank" title="JavaCrab">JavaCrab</a></div>
              </div>
            
              <div class="user_visit">
                <div class="logo"><a href="http://dylinshi126.iteye.com/" target="_blank"><img alt="dylinshi126的博客" class="logo" src="./java遍历map的所有的元素（各种方法）_files/user-logo-thumb.gif" title="dylinshi126的博客: "></a></div>
                <div class="left"><a href="http://dylinshi126.iteye.com/" target="_blank" title="dylinshi126">dylinshi126</a></div>
              </div>
            
              <div class="user_visit">
                <div class="logo"><a href="http://memomemo.iteye.com/" target="_blank"><img alt="memomemo的博客" class="logo" src="./java遍历map的所有的元素（各种方法）_files/user-logo-thumb.gif" title="memomemo的博客: "></a></div>
                <div class="left"><a href="http://memomemo.iteye.com/" target="_blank" title="memomemo">memomemo</a></div>
              </div>
            
              <div class="user_visit">
                <div class="logo"><a href="http://terryhello.iteye.com/" target="_blank"><img alt="terryhello的博客" class="logo" src="./java遍历map的所有的元素（各种方法）_files/user-logo-thumb.gif" title="terryhello的博客: terryhello"></a></div>
                <div class="left"><a href="http://terryhello.iteye.com/" target="_blank" title="terryhello">terryhello</a></div>
              </div>
            
          </div>

          

                      <div id="blog_menu">
              <h5>文章分类</h5>
              <ul>
                <li><a href="http://qsfwy.iteye.com/">全部博客 (336)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/33950">javaScript校验 (11)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/34021">java (30)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/36220">java连接数据库 (1)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37142">js应用 (41)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37437">JQuery (15)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/33951">linux操作命令 (12)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/33952">loadrunner测试 (5)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/34277">tomcat (18)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/34311">数据库 (12)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/34612">eclipse (7)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/35969">触发器 (7)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/36187">表单 (3)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/36952">ibatis (6)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37209">oracle (4)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37217">xml (1)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37240">Exception (6)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/34562">spring (16)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/35630">struts (4)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/39843">struts 标签 (2)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37211">sql (8)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37292">sql server (6)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/37560">其它 (18)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/41978">Apache (2)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/42804">电脑故障 (4)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/48974">java 线程 (1)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/51107">dwr (8)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/53184">jackey (18)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/69940">总结 (34)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/73772">gcc  linux (2)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/74642">extjs 学习 (5)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/75060">网站建设 (4)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/78159">健康 (2)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/79290">房地产知识 (1)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/121087">hibernate (3)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/212308">mysql (7)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/241552">linux (13)</a></li>
                
                  <li><a href="http://qsfwy.iteye.com/category/288354">svn (1)</a></li>
                
              </ul>
            </div>
            <div id="month_blogs">
              <h5>社区版块</h5>
              <ul>
                <li><a href="http://qsfwy.iteye.com/blog/news">我的资讯</a> (0)</li>
                <li>
                  <a href="http://qsfwy.iteye.com/blog/post">我的论坛</a> (4)
                </li>
                <li><a href="http://qsfwy.iteye.com/blog/answered_problems">我的问答</a> (0)</li>
              </ul>
            </div>
            <div id="month_blogs">
              <h5>存档分类</h5>
              <ul>
                
                  <li><a href="http://qsfwy.iteye.com/blog/monthblog/2013-08">2013-08</a> (2)</li>
                
                  <li><a href="http://qsfwy.iteye.com/blog/monthblog/2012-10">2012-10</a> (7)</li>
                
                  <li><a href="http://qsfwy.iteye.com/blog/monthblog/2012-09">2012-09</a> (5)</li>
                
                <li><a href="http://qsfwy.iteye.com/blog/monthblog_more">更多存档...</a></li>
              </ul>
            </div>
            
            
              <div id="comments_top">
                <h5>评论排行榜</h5>
                <ul>
                  
                    <li><a href="http://qsfwy.iteye.com/blog/1684244" title="spring 3.1中的cache小结 ">spring 3.1中的cache小结 </a></li>
                  
                </ul>
              </div>
            

            <div id="guest_books">
              <h5>最新评论</h5>
              <ul>
                
                <li>
                  <a href="http://bnmnba.iteye.com/" target="_blank" title="bnmnba">bnmnba</a>： 
                  很详细。。<br>
                  <a href="http://qsfwy.iteye.com/blog/244200#bc2321790">JAVA 基本数据类型  取值范围</a>
                </li>
                
                <li>
                  <a href="http://wnczwl369.iteye.com/" target="_blank" title="wnczwl369">wnczwl369</a>： 
                   ，good job！<br>
                  <a href="http://qsfwy.iteye.com/blog/682796#bc2312046">Struts2+jQuery+JSON实现异步交互</a>
                </li>
                
                <li>
                  <a href="http://mukehua.iteye.com/" target="_blank" title="mukehua">mukehua</a>： 
                   ...<br>
                  <a href="http://qsfwy.iteye.com/blog/682796#bc2310712">Struts2+jQuery+JSON实现异步交互</a>
                </li>
                
                <li>
                  <a href="http://ai-haige.iteye.com/" target="_blank" title="ge立海">ge立海</a>： 
                  如果想要传回的是字符串同时还有对象或者对象列表呢？情景是这样的 ...<br>
                  <a href="http://qsfwy.iteye.com/blog/682796#bc2306780">Struts2+jQuery+JSON实现异步交互</a>
                </li>
                
                <li>
                  <a href="http://dingruzheng.iteye.com/" target="_blank" title="dingruzheng">dingruzheng</a>： 
                  太感谢楼主了，正好要用呢，简洁明了，看了一目了然，谢谢。<br>
                  <a href="http://qsfwy.iteye.com/blog/682796#bc2304836">Struts2+jQuery+JSON实现异步交互</a>
                </li>
                
              </ul>
            </div>

            <div class="local_bottom"></div>
          
        </div>
      </div>

      <div id="footer" class="clearfix">
        <div id="copyright">
          <hr>
          声明：ITeye文章版权属于作者，受法律保护。没有作者书面许可不得转载。若作者同意转载，必须以超链接形式标明文章原始出处和作者。<br>
          © 2003-2012 ITeye.com.   All rights reserved.  [ 京ICP证110151号  京公网安备110105010620 ]
        </div>
      </div>
    </div>
    <script type="text/javascript">
  document.write("<img src='http://stat.iteye.com/?url="+ encodeURIComponent(document.location.href) + "&referrer=" + encodeURIComponent(document.referrer) + "&user_id=' width='0' height='0' />");
</script><img src="./java遍历map的所有的元素（各种方法）_files/saved_resource" width="0" height="0">

    
    
  

</body></html>